ShadowDrawable
The base constructor for all API levels requires an owner View that must be attached to the onscreen hierarchy.
isClipped determines whether the drawable will draw a clipped or a regular shadow, the latter being useful when color compat is needed without the clip. Clipped instances with irregular shapes on API levels 30+ require that the outline Path be set manually through setClipPathProvider.
It is encouraged to dispose of these instances when appropriate in order to allow disposal of any underlying resources that may be in use.
At API level 29, an owner View is not required, but color compat is unavailable for these instances.
isClipped determines whether the drawable will draw a clipped or a regular shadow, the latter being useful when color compat is needed without the clip.
Clipped instances with irregular shapes on API levels 30+ require that the outline Path be set manually through setClipPathProvider.
It is not necessary to call dispose on these instances, but it is safe to do so.